<title>实名认证</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="#(assets)/css/font/iconfont.css">
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="#(assets)/js/app.js"></script>
<script type="text/javascript" src="#(assets)/js/layer/layer.js"></script>
#@checkToken()
<style> 
	*{margin:0;padding:0;}
	body{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";}
	li{list-style-type:none;}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
</style>
<body bgcolor="#fff" style="margin:0px;">
<div align=center>
	<div style="width:90%;margin-top:10px;height:70px;"> 
		<div align="right" style="width:2%;float:left;color:#ff2f48">*</div>
		<div align="left" style="float:left;width:96%;padding-left:2%;font-size:13px;line-height:20px;">
			<a style="color:#dadada">为保护您的资金安全，充值、投资前需授权开通旺进财的个人存管账户，您的资金交易均需要通过此账户完成</a>
		</div>
		<br> 
	</div>
	<div>
		<div style="width:14%;background:#fd536d;height:2px;float:left;margin-left:5%"></div>
		<div style="width:6px;height:6px;border-radius:3px;background:#fd536d;float:left;margin-top:-2px;"></div>
		<div style="width:14%;background:#fd536d;height:2px;float:left;"></div>
		
		<div style="width:14%;background:#dddbdc;height:2px;float:left;"></div>
		<div style="width:5px;height:5px;border-radius:3px;border:1px solid #dddbdc;float:left;margin-top:-2px;background:#FFF"></div>
		<div style="width:14%;background:#dddbdc;height:2px;float:left;"></div>
		
		<div style="width:14%;background:#dddbdc;height:2px;float:left;"></div>
		<div style="width:5px;height:5px;border-radius:3px;border:1px solid #dddbdc;float:left;margin-top:-2px;background:#FFF"></div>
		<div style="width:14%;background:#dddbdc;height:2px;float:left;"></div>
	</div>
	<div style="clear:both;font-size:12px;">
		<div style="width:38%;float:left;color:#fd536d">身份认证</div>
		<div style="width:25%;float:left;color:#dddbdc">绑定银行卡</div>
		<div style="width:35%;float:left;color:#dddbdc">设置交易密码及授权</div>
	</div>
	<div style="height:40px;"></div>
	<div style="clear:both;background:#f4f5f9;height:50px;width:100%;">
		<div align="center" style="float:left;width:30%;line-height:50px;font-size:16px;"><a>真实姓名</a></div>
		<div align="center" style="float:left;width:70%;line-height:50px;"><input id="realName"  placeholder="请输入真实姓名" type="text" style="font-size:16px;height:50px;background:#f4f5f9;width:100%"></div>
	</div>
	<div style="clear:both;background:#f4f5f9;height:50px;width:100%;margin-top:10px;"> 
		<div align="center" style="float:left;width:30%;line-height:50px;font-size:16px;"><a>身份证号</a></div>
		<div align="center" style="float:left;width:70%;line-height:50px;"><input id="certNum"  placeholder="请输入身份证号" type="text" style="font-size:16px;height:50px;background:#f4f5f9;width:100%"></div>
	</div>
	<div  style="clear:both;height:50px;width:100%;margin-top:10px;font-size:14px;">
		<div align="left" style="width:90%;line-height:20px;font-size:14px;">
		<span>
			开户即代表您已阅读并同意
			<a style="color:#ff4d63;text-decoration:none" href="/app/page/help-openAccount">《旺进财存管账户开户说明》</a>
			以及旺进财的
			<a style="color:#ff4d63;text-decoration:none" href="/app/page/help-riskWarn">《风险提示函》</a>
		</span>
		</div>
	</div>
	<div align="center" style="width:90%;margin-top:30px;">
		<input id="ok" value="完成" type="button" style="height:45px;width:100%;color:#FFF;background:#fd536d;border-radius:10px;font-size:16px;">
	</div>
	<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> 
	<script> 
	$(document).ready(function(){
		var ip_l=returnCitySN["cip"];
		
		$("#ok").click(function(){
			var realName = $("#realName").val();
			var certNum = $("#certNum").val();
			$.getJSON("/user/setRealName?token=#(session.token??)&realName="+realName+"&certNum="+certNum+"&ip="+ip_l,function(datainfo) {
				console.log(datainfo);
				if(datainfo.code=='success'){
					layer.msg(datainfo.msg,{icon:1,time:1000}); 
					window.location.href="#(path)/app/page/user-bidbank";
				}else{
					layer.msg(datainfo.msg,{icon:2,time:1000}); 
				}
			});
		});
	});
	</script>
</body>